package secondStage.part2.内部类.three;

/**
 * @ClassName: [Outer]
 * @Description: 局部内部类
 * @Author: [黄劲松]
 * @CreateDate: [2021-03-21]
 * @Version: [v1.0]
 */
public class Outer {//外部类
    private int num = 90;

    public void method() {
        int num2 = 33;//局部变量
        class Inter {//内部类

            public void show() {
                System.out.println("局部内部类：" + num);
                System.out.println("局部变量：" + num2);
            }
        }
        //创建对象，调用方法
        Inter i = new Inter();
        i.show();
    }
}
